package com.learn.step03_functions

/**
 *
 *
 * @author: hbliy
 * @date: 2025/7/9 14:15
 */
fun main(args: Array<String>) {
    println(auraColor(true, 10, true))
    println(auraColor(true, 60, false))
    println(auraColor(false, 10, true))
    println(auraColor(false, 60, false))
}


private fun auraColor(isBlessed: Boolean, healthPoints: Int, isImmortal: Boolean) =
    if (isBlessed && healthPoints > 50 || isImmortal) "GREEN" else "NONE"